﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    enum RobotType 
    {
        炒菜机器人类CookRobot,
        传菜机器人类DeliveryRobot
    }
    abstract class Robot
    {
        private string name;
        private RobotType type;
        public string Name 
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public RobotType Type
        {
            get { return this.type; }
            set { this.type = value; }
        }

        public Robot(string name , RobotType type) 
        {
            this.name = Name;
            this.type = Type;
        }
        public Robot() 
        {

        }
        public abstract void working();
    }
}
